Skip to content

Move quote tagging to Staging #8342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2020
Merged

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Feb 19, 2020

Fix #8302, fix #8052 and fix #7521.

@nicolasstucki nicolasstucki self-assigned this Feb 19, 2020
@nicolasstucki nicolasstucki linked an issue Feb 19, 2020 that may be closed by this pull request
@nicolasstucki nicolasstucki changed the title Fix #8302: Move quote tagging to Staging Move quote tagging to Staging Feb 19, 2020
@nicolasstucki nicolasstucki marked this pull request as ready for review February 19, 2020 09:51
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM

@@ -52,7 +52,8 @@ object PickledQuotes {
private def dealiasTypeTags(tp: Type)(implicit ctx: Context): Type = new TypeMap() {
override def apply(tp: Type): Type = {
val tp1 = tp match {
case tp: TypeRef if tp.typeSymbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot) => tp.dealias
case tp: TypeRef if tp.typeSymbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot) =>
tp.symbol.info.hiBound
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason the type aliases get transformed into type bounds with equivalent upper and lower bound but they do not get dealiased. I will investigate further.

@nicolasstucki nicolasstucki force-pushed the fix-#8302 branch 4 times, most recently from f306d32 to c24a4d3 Compare February 22, 2020 13:46
@nicolasstucki nicolasstucki merged commit 0e847de into scala:master Feb 25, 2020
@nicolasstucki nicolasstucki deleted the fix-#8302 branch February 25, 2020 12:58
@anatoliykmetyuk anatoliykmetyuk added this to the 0.23.0-RC1 milestone Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants